home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
mc51bugs
/
q32305
< prev
next >
Wrap
Text File
|
1988-07-20
|
898b
|
42 lines
Q32305 Error C2126 Repeated
C Compiler
5.10 | 5.10
MS-DOS | OS/2
Problem:
When the following program is compiled with the default options,
the error C2126 "automatic allocation exceeds 32K" is repeated four
times:
#define LINT_ARGS
#include <limits.h>
#include <malloc.h>
#include <stdio.h>
#include <stdlib.h>
main(void)
{
long k;
int i;
char *q;
char *p[30000];
i = 0;
do
p[i++] = (char *)malloc((size_t)K);
while (q != NULL);
return 0;
}
Response:
This error message is supposed to appear, but it should appear only
once. Make the variable p a global array to avoid the error(s).
Microsoft has confirmed this to be a problem in Version 5.10 of the
C compiler. We are researching this problem and will post new
information as it becomes available.
Keywords: buglist5.10
Updated 88/07/21 03:19